package com.kmist.xiakexing.data;

import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;

import com.kmist.xiakexing.tools.Config;
import com.kmist.xiakexing.utils.scene.ItemBean;

public class ItemDao implements IItemDao{

    private static ItemDao sInstance = null;
    private XiakexingDBHelper xiakexingDBHelper;
    private SQLiteDatabase db;
    private Cursor c;

    private IItemDaoCallback mCallback = null;

    public static ItemDao getInstance() {
        if(sInstance == null){
            synchronized (ItemDao.class){
                sInstance = new ItemDao();
            }
        }
        return sInstance;
    }

    public ItemDao() {
        xiakexingDBHelper = new XiakexingDBHelper(Config.context);
    }

    @Override
    public void setCallback(IItemDaoCallback callback) {
        this.mCallback = callback;
    }

    @Override
    public void getItem(String mapName) {

    }

    @Override
    public void addItem(ItemBean itemBean) {

    }

    @Override
    public void delItem(ItemBean itemBean) {

    }
}
